package com.souku.finance.application.http.volley;

import android.app.Activity;

import com.android.volley.manager.RequestManager;
import com.souku.finance.application.http.UrlConstact;
import com.souku.finance.application.utils.ParamUtil;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Android on 2017/1/5.
 */

public class LogoutHelper {

    private Activity context;

    public LogoutHelper(Activity context) {
        this.context = context;
    }

    //获取服务器时间
    public void getOut() {
        HashMap<String, String> map = ParamUtil.getParams();
        RequestManager.getInstance().post(UrlConstact.LOGOUT, ParamUtil.getSing(map), new RequestManager.RequestListener() {
            @Override
            public void onRequest() {

            }

            @Override
            public void onSuccess(String response, Map<String, String> headers, String url, int actionId) {

            }

            @Override
            public void onError(String errorMsg, String url, int actionId) {

            }
        }, ParamUtil.getHeaders());
    }
}
